//
//  ATVInstanceController.h
//  FlashController
//
//  Created by Martin Schiøth Dyrby on 11/15/11.
//  Copyright 2011 Molamil. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ATVBrowserView.h"
#import "ATVInstanceService.h"
#import "ATVEditorView.h"
#import "ATVInstanceView.h"


@interface ATVInstanceController : NSObject <NSTableViewDataSource> {
    ATVBrowserView *browserView;
    ATVInstanceService *instanceService;
    ATVEditorView *editorView;
    ATVInstanceView *instanceView;
}

@property (retain) IBOutlet ATVBrowserView *browserView;
@property (retain) IBOutlet ATVInstanceService *instanceService;
@property (retain) IBOutlet ATVEditorView *editorView;
@property (retain) IBOutlet ATVInstanceView *instanceView;
@property (retain) IBOutlet ATVJavaScriptController *javaScriptController;

- (void)addTypeDef:(NSString *) message;
- (void)removeTypeDef:(NSString *) path;
+ (NSString *) webScriptNameForSelector:(SEL)sel;
+ (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector;
- (void) asObjectId: (NSString*) value;
- (IBAction)onEditorClick:(id)sender;

@end